from django.db import models

# Create your models here.

# class User(models.Model):
#     username = models.CharField(max_length=100)
#     password = models.CharField(max_length=100)
#     mobile = models.CharField(max_length=11)
#     class Meta:
#         db_table='user'
#
# class Quyu(models.Model):
#     name = models.CharField(max_length=200)
#     id = models.IntegerField()
#     class Meta:
#         db_table='quyu'
#
# class Useraddress(models.Model):
#     userid = models.ForeignKey(User,on_delete=models.CASCADE)
#     name = models.CharField(max_length=100)



class News(models.Model):
     title = models.CharField(max_length=100)
     content = models.CharField(max_length=200)
     class Meta:
         db_table='news'

class Ad(models.Model):
    pic = models.ImageField(default="")
    detail = models.CharField(max_length=100)
    type = models.CharField(max_length=50)





